<div class="pathname">
	<?php echo $this->breadcrumb($this->breadcrumb);?>
</div> <!-- end path name-->
<!-- begin Scheduling-->
<div class="content">
	<div class="contentTop"><h1>Liên hệ</h1></div><!-- end contentTop-->
    <div class="contentCenter">
    	<div class="fixContent fixtext">
        	<p><?php echo $this->translate('require_information_first', $this->lang)?> (<span class="r_color">*</span>) <?php echo $this->translate('require_information_last', $this->lang)?></p>
            <form>
            	<div class="inputForm">
                   <label><?php echo $this->translate('full_name', $this->lang)?><span class="r_color">*</span>:</label>
                   <input type="text" name="gopy_fullname" id="gopy_fullname" maxlength="60"><br>
                   <label>Email<span class="r_color">*</span>:</label>
                   <input type="text" name="gopy_email" id="gopy_email" maxlength="50"><br>
                   <label><?php echo $this->translate('phone', $this->lang)?><span class="r_color">*</span>:</label>
                   <input type="text" name="gopy_phone" id="gopy_phone" maxlength="15"><br>
                   <label><?php echo $this->translate('contact_subject', $this->lang)?><span class="r_color">*</span>:</label>
                   <input type="text" name="gopy_tieude" id="gopy_tieude" maxlength="125"><br>
            	   <label><?php echo $this->translate('question_content', $this->lang)?><span class="r_color">*</span>:</label>
            	   <textarea rows="10" name="gopy_content" id="gopy_content" maxlength="500"></textarea>
               </div>
               <!-- div class="clauseForm">
               <input type="checkbox" name="agreementstm"/><span><?php echo $this->translate('agreement_statement', $this->lang)?></span>
               <p>Thông tin cá nhân của bạn được FMIT sử dụng để tư vấn các khóa học, ghi danh đăng ký khóa học online và gửi những chương trình khuyến mãi, tin tức. Bạn có thể yêu cầu không tham gia bằng cách gửi Email về <a href="mailto:info@fmit.vn">info@fmit.vn</a></p>
               </div-->
            </form>
            <div id="message" style="text-align: center;font-weight: bold;color: red;">&nbsp;</div>
            <span id="registerbutton">
                <a href="javascript:void(0)" class="btnSubmit" id="btnSendLienHe"><?php echo $this->translate('register_button_label', $this->lang)?></a>
            </span>
            <hr />
            <div class="contacInfo" style="height: 350px; position: relative;">
            	<?php echo $this->address;?>
                <div id="map_canvas" style="width: 330px; height: 320px; border: 2px solid #9CA2A5; position: absolute;top: 0px;right: 0px;">
                </div>
            </div>
           
        </div><!--fixContent-->
    </div><!-- end contentCenter-->
    <div class="contentBottom"></div><!-- end contentBottom-->
    <div class="footer">
        <?php if(Utils_Global::getCurrentLanguage() == 'vi') {
            require_once(APPLICATION_PATH . '/modules/cms/layouts/scripts/footer.phtml');
        } else {
        	require_once(APPLICATION_PATH . '/modules/cms/layouts/scripts/footer_en.phtml');
        }?>
    </div><!--footer-->
</div><!--end Scheduling-->
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script language="javascript" type="text/javascript">
        //contactform("#contactuscontent");
        var map;
        var infowindow = new google.maps.InfoWindow();
        var marker;
        var directionDisplay;
        var directionsService = new google.maps.DirectionsService();
        var geocoder = new google.maps.Geocoder();
        if (navigator.geolocation) {
            var latlng = new google.maps.LatLng(10.779875,106.695442);

            geocoder.geocode({ 'latLng': latlng }, function (results, status) {
                if (status == google.maps.GeocoderStatus.OK) {
                    //var latlng = results[3].geometry.location;
                    var myOptions = {
                        zoom: 15,
                        center: latlng,
                        mapTypeId: google.maps.MapTypeId.ROADMAP
                    }
                    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

                    marker = new google.maps.Marker({
                        position: latlng,
                        map: map
                    });
                    //infowindow.setContent("<div><b style='color:#8C1010; font-size:13px'>VIỆN FMIT</b></div><div align='left' style='font-weight:bold'>126 Nguyễn Thị Minh Khai, P. 6, Q. 3, Tp. HCM</div><div  align='left' style='font-weight:bold; width:300px'>Điện thoại: (08) 3930 1724 - (08) 3930 1725 - (08) 3930 1726</div><div  align='left' style='font-weight:bold'>Hotline: 0988 54 00 11</div><div  align='left' style='font-weight:bold'>Email: info@fmit.vn</div>");
                    infowindow.open(map, marker);

                    directionsDisplay = new google.maps.DirectionsRenderer();
                    directionsDisplay.setMap(map);

                }
                else {
                    alert("Geocoder failed due to: " + status);
                }
            });
        }
        else {
            error('not supported');
        }

        //        if (GBrowserIsCompatible()) {
        //            var map = new GMap2(document.getElementById("map_canvas"));
        //            map.setCenter(new GLatLng(10.80563289360477, 106.71602010726929), 15);
        //            map.openInfoWindow(map.getCenter(), "<div><b style='color:#8C1010; font-size:13px'>VIỆN FMIT</b></div><div align='left' style='font-weight:bold'>126 Nguyễn Thị Minh Khai, P. 6, Q. 3, Tp. HCM</div><div  align='left' style='font-weight:bold; width:300px'>Điện thoại: (08) 3930 1724 - (08) 3930 1725 - (08) 3930 1726</div><div  align='left' style='font-weight:bold'>Hotline: 0988 54 00 11</div><div  align='left' style='font-weight:bold'>Email: info@fmit.vn</div>");
        //            map.setUIToDefault();
        //        }
    </script>
